﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SitePagePopUp.Master" AutoEventWireup="true" CodeBehind="Add-Type-Advertising.aspx.cs" Inherits="TranTekBE.Marketing.Add_Type_Advertising" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        
    
         td,th {
             border: 1px solid #cccccc;
         }
             th {
            background-color: #006796;
            color: white;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyPopupContent" runat="server">
    <div style="padding: 10px;">
        <table style="margin: 0 auto;width: 100%;" >
            <tbody>
                <tr>
                    <td>Loại quảng cáo</td>
                    <td>
                        <asp:TextBox ID="TextBoxLoaiQuangCao" runat="server" Width="341px"></asp:TextBox>
                        <div></div>
                        <asp:RequiredFieldValidator Display="Dynamic" ControlToValidate="TextBoxLoaiQuangCao" ID="RequiredFieldValidator1" runat="server" ErrorMessage="Chưa nhập tên loại" ValidationGroup="dd"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <asp:Button ID="ButtonThem" runat="server" Text="Thêm" OnClick="ButtonThem_Click" ValidationGroup="dd" />
                        <asp:Button ID="ButtonXoa" OnClientClick="return confirm('Bạn chắc chắn muốn xóa')" runat="server" Text="Xóa" OnClick="ButtonXoa_Click" />
                        <asp:Button ID="ButtonSua" runat="server" Text="Sửa" OnClick="ButtonSua_Click" ValidationGroup="dd" />
                        <asp:Label ID="LabelError" runat="server"></asp:Label>

                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" EnableModelValidation="True" HorizontalAlign="Center" ShowFooter="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="100%">
                            <Columns>
                                <asp:TemplateField ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select" Text=""><button type="button">Select</button></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="LoaiQuangCaoId" HeaderText="Id" />
                                <asp:BoundField DataField="Name" HeaderText="Loại" />
                                <asp:TemplateField HeaderText="Created Date">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# DateTime.Parse(Eval("CreatedDate").ToString()).ToString("dd-MM-yyyy") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Username" HeaderText="Created By"  />
                            </Columns>
                            <SelectedRowStyle BackColor="#CCCCCC" />
                        </asp:GridView>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <script>
    
    </script>
</asp:Content>
